#ifndef	_MODULE_SELECT_H_
#define	_MODULE_SELECT_H_

#define WEAK_CHECK

#define FLASH_SECTOR_SIZE	(1024*2)

#define BOOTLOADER_ADD	0x08000000
#define BOOTLOADER_SIZE	(1024*12)

#define PCB_VERSION_ADD	(BOOTLOADER_ADD+BOOTLOADER_SIZE-4*4-4)

#define UID_WRITE_ADD	(BOOTLOADER_ADD+BOOTLOADER_SIZE-4*4)
#define UID_GEN_ADD		(BOOTLOADER_ADD+BOOTLOADER_SIZE)

#define SYSTEM_CFG_REVERSED		(BOOTLOADER_ADD+BOOTLOADER_SIZE)
#define SYSTEM_CFG_FILE_SIZE	(SYSTEM_CFG_REVERSED+4)
#define SYSTEM_CFG_FILE_CRC		(SYSTEM_CFG_FILE_SIZE+4)
#define SYSTEM_CFG_FILE_UPDATE	(SYSTEM_CFG_FILE_CRC+4)

#define SYSTEM_STATE_SIZE	512
#define SYSTEM_VALID_PARA	0x84236066
#define SYSTEM_VALID_ADD	(BOOTLOADER_ADD+BOOTLOADER_SIZE+SYSTEM_STATE_SIZE-4)
#define SYSTEM_ADD			(BOOTLOADER_ADD+BOOTLOADER_SIZE+SYSTEM_STATE_SIZE)

#define RAM_ADD				0x20000000
#endif
